
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>代码表服务 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="COUNTERSERVICE.html" />
    
    
    <link rel="prev" href="AUTHSERVICE.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" >
            
                <span>
            
                    
                    应用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="../APPS/LOCALE.html">
            
                <a href="../APPS/LOCALE.html">
            
                    
                    国际化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="../APPS/EXTENDED.html">
            
                <a href="../APPS/EXTENDED.html">
            
                    
                    快速介入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="../APPS/STYLE.html">
            
                <a href="../APPS/STYLE.html">
            
                    
                    样式规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="../APPS/NAVG.html">
            
                <a href="../APPS/NAVG.html">
            
                    
                    导航模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="../APPS/TEMP.html">
            
                <a href="../APPS/TEMP.html">
            
                    
                    临时模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="../APPS/Theme.html">
            
                <a href="../APPS/Theme.html">
            
                    
                    应用主题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="../APPS/NAVPARAM.html">
            
                <a href="../APPS/NAVPARAM.html">
            
                    
                    自定义导航参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="../APPS/VIEWMESSAGE.html">
            
                <a href="../APPS/VIEWMESSAGE.html">
            
                    
                    视图消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" >
            
                <span>
            
                    
                    视图
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="../VIEWS/EDITVIEW.html">
            
                <a href="../VIEWS/EDITVIEW.html">
            
                    
                    实体编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="../VIEWS/EDITVIEWPAGE.html">
            
                <a href="../VIEWS/EDITVIEWPAGE.html">
            
                    
                    实体编辑视图(分页关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="../VIEWS/EDITVIEWUPDOWN.html">
            
                <a href="../VIEWS/EDITVIEWUPDOWN.html">
            
                    
                    实体编辑视图(上下关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="../VIEWS/EDITVIEWABOUT.html">
            
                <a href="../VIEWS/EDITVIEWABOUT.html">
            
                    
                    实体编辑视图(左右关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="../VIEWS/MEDITVIEW.html">
            
                <a href="../VIEWS/MEDITVIEW.html">
            
                    
                    实体多表单编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="../VIEWS/GRIDVIEW.html">
            
                <a href="../VIEWS/GRIDVIEW.html">
            
                    
                    实体表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="../VIEWS/GRIDEXPVIEW.html">
            
                <a href="../VIEWS/GRIDEXPVIEW.html">
            
                    
                    实体表格导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="../VIEWS/TABEXPVIEW.html">
            
                <a href="../VIEWS/TABEXPVIEW.html">
            
                    
                    实体分页导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.9" data-path="../VIEWS/EntityDataKanbanView.html">
            
                <a href="../VIEWS/EntityDataKanbanView.html">
            
                    
                    实体数据看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.10" data-path="../VIEWS/LISTVIEW.html">
            
                <a href="../VIEWS/LISTVIEW.html">
            
                    
                    实体列表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.11" data-path="../VIEWS/LISTEXPVIEW.html">
            
                <a href="../VIEWS/LISTEXPVIEW.html">
            
                    
                    实体列表导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.12" data-path="../VIEWS/DATAVIEW.html">
            
                <a href="../VIEWS/DATAVIEW.html">
            
                    
                    实体数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.13" data-path="../VIEWS/OPTIONVIEW.html">
            
                <a href="../VIEWS/OPTIONVIEW.html">
            
                    
                    实体选项操作视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.14" data-path="../VIEWS/DATAVIEWEXPVIEW.html">
            
                <a href="../VIEWS/DATAVIEWEXPVIEW.html">
            
                    
                    实体卡片导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.15" data-path="../VIEWS/CALENDARVIEW.html">
            
                <a href="../VIEWS/CALENDARVIEW.html">
            
                    
                    实体日历视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.16" data-path="../VIEWS/DAREXPVIEW.html">
            
                <a href="../VIEWS/DAREXPVIEW.html">
            
                    
                    实体日历导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.17" data-path="../VIEWS/TREEVIEW.html">
            
                <a href="../VIEWS/TREEVIEW.html">
            
                    
                    实体树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.18" data-path="../VIEWS/TREEEXPVIEW.html">
            
                <a href="../VIEWS/TREEEXPVIEW.html">
            
                    
                    实体树导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.19" data-path="../VIEWS/TREEGRIDEXVIEW.html">
            
                <a href="../VIEWS/TREEGRIDEXVIEW.html">
            
                    
                    实体树表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.20" data-path="../VIEWS/INDEXVIEW.html">
            
                <a href="../VIEWS/INDEXVIEW.html">
            
                    
                    应用首页视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.21" data-path="../VIEWS/AppKanBanView.html">
            
                <a href="../VIEWS/AppKanBanView.html">
            
                    
                    应用看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.22" data-path="../VIEWS/ENTITYKANBANVIEW.html">
            
                <a href="../VIEWS/ENTITYKANBANVIEW.html">
            
                    
                    实体看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.23" data-path="../VIEWS/GANTTVIEW.html">
            
                <a href="../VIEWS/GANTTVIEW.html">
            
                    
                    实体甘特图视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.24" data-path="../VIEWS/ENTITYCHARTVIEW.html">
            
                <a href="../VIEWS/ENTITYCHARTVIEW.html">
            
                    
                    实体图表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.25" data-path="../VIEWS/ENTITYDATASELECTVIEW.html">
            
                <a href="../VIEWS/ENTITYDATASELECTVIEW.html">
            
                    
                    实体数据选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.26" data-path="../VIEWS/ENTITYSELECTGRIDVIEW.html">
            
                <a href="../VIEWS/ENTITYSELECTGRIDVIEW.html">
            
                    
                    实体选择表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.27" data-path="../VIEWS/ENTITYSELECTTREEVIEW.html">
            
                <a href="../VIEWS/ENTITYSELECTTREEVIEW.html">
            
                    
                    实体选择树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.28" data-path="../VIEWS/INDEXPICKUPDATAVIEW.html">
            
                <a href="../VIEWS/INDEXPICKUPDATAVIEW.html">
            
                    
                    实体索引关系选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.29" data-path="../VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                <a href="../VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                    
                    实体工作流动态导航表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.30" data-path="../VIEWS/ENTITYWORKFLOWEDITVIEW.html">
            
                <a href="../VIEWS/ENTITYWORKFLOWEDITVIEW.html">
            
                    
                    实体工作流动态编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.31" data-path="../VIEWS/LOGINVIEW.html">
            
                <a href="../VIEWS/LOGINVIEW.html">
            
                    
                    应用登录视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.32" data-path="../VIEWS/DATAUPLOADVIEW.html">
            
                <a href="../VIEWS/DATAUPLOADVIEW.html">
            
                    
                    应用数据导入视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.33" data-path="../VIEWS/REDIRECTVIEW.html">
            
                <a href="../VIEWS/REDIRECTVIEW.html">
            
                    
                    实体数据重定向视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.34" data-path="../VIEWS/CUSTOM.html">
            
                <a href="../VIEWS/CUSTOM.html">
            
                    
                    实体自定义视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.35" data-path="../VIEWS/WIZARDVIEW.html">
            
                <a href="../VIEWS/WIZARDVIEW.html">
            
                    
                    实体向导视图
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" >
            
                <span>
            
                    
                    部件
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="../CTRLS/FORM.html">
            
                <a href="../CTRLS/FORM.html">
            
                    
                    表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="../CTRLS/GRID.html">
            
                <a href="../CTRLS/GRID.html">
            
                    
                    表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="../CTRLS/GRIDEXPBAR.html">
            
                <a href="../CTRLS/GRIDEXPBAR.html">
            
                    
                    表格导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="../CTRLS/SEARCHBAR.html">
            
                <a href="../CTRLS/SEARCHBAR.html">
            
                    
                    搜索栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="../CTRLS/SEARCHFORM.html">
            
                <a href="../CTRLS/SEARCHFORM.html">
            
                    
                    搜索表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="../CTRLS/DataKanBan.html">
            
                <a href="../CTRLS/DataKanBan.html">
            
                    
                    数据看板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="../CTRLS/PortalComponents.html">
            
                <a href="../CTRLS/PortalComponents.html">
            
                    
                    门户部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="../CTRLS/TABEXPPANEL.html">
            
                <a href="../CTRLS/TABEXPPANEL.html">
            
                    
                    分页导航面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="../CTRLS/TABVIEWPANEL.html">
            
                <a href="../CTRLS/TABVIEWPANEL.html">
            
                    
                    分页视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.10" data-path="../CTRLS/APPMENU.html">
            
                <a href="../CTRLS/APPMENU.html">
            
                    
                    应用菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.11" data-path="../CTRLS/LIST.html">
            
                <a href="../CTRLS/LIST.html">
            
                    
                    列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.12" data-path="../CTRLS/LISTEXPBAR.html">
            
                <a href="../CTRLS/LISTEXPBAR.html">
            
                    
                    列表导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.13" data-path="../CTRLS/PANEL.html">
            
                <a href="../CTRLS/PANEL.html">
            
                    
                    面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.14" data-path="../CTRLS/DATAVIEWCTRL.html">
            
                <a href="../CTRLS/DATAVIEWCTRL.html">
            
                    
                    数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.15" data-path="../CTRLS/DATAVIEWEXPBAR.html">
            
                <a href="../CTRLS/DATAVIEWEXPBAR.html">
            
                    
                    卡片视图导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.16" data-path="../CTRLS/DataRelationPage.html">
            
                <a href="../CTRLS/DataRelationPage.html">
            
                    
                    数据关系分页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.17" data-path="../CTRLS/DATARELATIONFIELD.html">
            
                <a href="../CTRLS/DATARELATIONFIELD.html">
            
                    
                    数据关系栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.18" data-path="../CTRLS/CALENDAR.html">
            
                <a href="../CTRLS/CALENDAR.html">
            
                    
                    日历部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.19" data-path="../CTRLS/CALENDARTIMELINE.html">
            
                <a href="../CTRLS/CALENDARTIMELINE.html">
            
                    
                    日历部件(时间轴)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.20" data-path="../CTRLS/CALENDAREXPBAR.html">
            
                <a href="../CTRLS/CALENDAREXPBAR.html">
            
                    
                    日历导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.21" data-path="../CTRLS/TREEEXPBAR.html">
            
                <a href="../CTRLS/TREEEXPBAR.html">
            
                    
                    树导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.22" data-path="../CTRLS/TREEVIEWUNIT.html">
            
                <a href="../CTRLS/TREEVIEWUNIT.html">
            
                    
                    树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.23" data-path="../CTRLS/TREEGRID.html">
            
                <a href="../CTRLS/TREEGRID.html">
            
                    
                    树表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.24" data-path="../CTRLS/MULTIEDITVIEWPANEL.html">
            
                <a href="../CTRLS/MULTIEDITVIEWPANEL.html">
            
                    
                    多编辑视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.25" data-path="../CTRLS/KANBANVIEWUNIT.html">
            
                <a href="../CTRLS/KANBANVIEWUNIT.html">
            
                    
                    看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.26" data-path="../CTRLS/GANTT.html">
            
                <a href="../CTRLS/GANTT.html">
            
                    
                    甘特图部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.27" data-path="../CTRLS/DATACHART.html">
            
                <a href="../CTRLS/DATACHART.html">
            
                    
                    数据图表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.28" data-path="../CTRLS/SELECTVIEWPANEL.html">
            
                <a href="../CTRLS/SELECTVIEWPANEL.html">
            
                    
                    选择视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.29" data-path="../CTRLS/WIZARDPANEL.html">
            
                <a href="../CTRLS/WIZARDPANEL.html">
            
                    
                    向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.30" data-path="../CTRLS/STATEWIZARDPANEL.html">
            
                <a href="../CTRLS/STATEWIZARDPANEL.html">
            
                    
                    状态向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.31" data-path="../CTRLS/CONTEXTMENU.html">
            
                <a href="../CTRLS/CONTEXTMENU.html">
            
                    
                    上下文菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.32" data-path="../CTRLS/TOOLBAR.html">
            
                <a href="../CTRLS/TOOLBAR.html">
            
                    
                    工具栏
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" >
            
                <span>
            
                    
                    编辑器
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../EDITORS/BASIC.html">
            
                <a href="../EDITORS/BASIC.html">
            
                    
                    基础类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../EDITORS/SHOW.html">
            
                <a href="../EDITORS/SHOW.html">
            
                    
                    展示类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../EDITORS/SELECT.html">
            
                <a href="../EDITORS/SELECT.html">
            
                    
                    选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.4" data-path="../EDITORS/TIME.html">
            
                <a href="../EDITORS/TIME.html">
            
                    
                    时间类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.5" data-path="../EDITORS/FILEUPLOADlIST.html">
            
                <a href="../EDITORS/FILEUPLOADlIST.html">
            
                    
                    文件上传类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6" data-path="../EDITORS/DATASELECT.html">
            
                <a href="../EDITORS/DATASELECT.html">
            
                    
                    数据选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.7" data-path="../EDITORS/AUTOCOMPLETELIST.html">
            
                <a href="../EDITORS/AUTOCOMPLETELIST.html">
            
                    
                    自动填充类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" >
            
                <span>
            
                    
                    逻辑
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="../LOGIC/APPFUNC.html">
            
                <a href="../LOGIC/APPFUNC.html">
            
                    
                    应用功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="../LOGIC/ACTION.html">
            
                <a href="../LOGIC/ACTION.html">
            
                    
                    界面行为
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.3" data-path="../LOGIC/VIEWLOGIC.html">
            
                <a href="../LOGIC/VIEWLOGIC.html">
            
                    
                    视图逻辑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" >
            
                <span>
            
                    
                    UI服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.1" data-path="CTRLSERVICE.html">
            
                <a href="CTRLSERVICE.html">
            
                    
                    部件服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.2" data-path="UISERVICE.html">
            
                <a href="UISERVICE.html">
            
                    
                    界面服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.3" data-path="AUTHSERVICE.html">
            
                <a href="AUTHSERVICE.html">
            
                    
                    权限服务
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.6.4" data-path="CODELISTSERVICE.html">
            
                <a href="CODELISTSERVICE.html">
            
                    
                    代码表服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.5" data-path="COUNTERSERVICE.html">
            
                <a href="COUNTERSERVICE.html">
            
                    
                    计数器服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.6" data-path="APPUTILSERVICE.html">
            
                <a href="APPUTILSERVICE.html">
            
                    
                    应用功能服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.7" data-path="VIEWMESSAGESERVICE.html">
            
                <a href="VIEWMESSAGESERVICE.html">
            
                    
                    视图消息服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.7" >
            
                <span>
            
                    
                    数据服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="../DATASERVICE/DATASERVICE.html">
            
                <a href="../DATASERVICE/DATASERVICE.html">
            
                    
                    数据服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../APPS/PROBLEM.html">
            
                <a href="../APPS/PROBLEM.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >代码表服务</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;">&#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;</h2>
<p>&#x4EE3;&#x7801;&#x8868;&#xFF0C;&#x5373;&#x6570;&#x5B57;&#x5B57;&#x5178;&#xFF0C;&#x4E3B;&#x8981;&#x7528;&#x4E8E;&#x754C;&#x9762;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x573A;&#x666F;&#x3002;&#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;&#x4E13;&#x95E8;&#x627F;&#x62C5;&#x4E3A;UI&#x754C;&#x9762;&#x4F9B;&#x6570;&#x53CA;&#x6570;&#x636E;&#x8F6C;&#x5316;&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x5185;&#x90E8;&#x5305;&#x542B;&#x4EE3;&#x7801;&#x8868;&#x53D6;&#x6570;&#x903B;&#x8F91;&#x3001;&#x6570;&#x636E;&#x7F13;&#x5B58;&#x7B49;&#x529F;&#x80FD;&#xFF0C;&#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;&#x4F4D;&#x4E8E;&#x5DE5;&#x7A0B;&#x76EE;&#x5F55;&#x4E0B;&#x7684;codelist&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x3002;</p>
<p>Vue-R7&#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;&#x7684;&#x53D6;&#x6570;&#x5904;&#x7406;&#x4E3B;&#x8981;&#x5206;&#x4E3A;&#x9759;&#x6001;&#x4EE3;&#x7801;&#x8868;&#x548C;&#x52A8;&#x6001;&#x4EE3;&#x7801;&#x8868;2&#x90E8;&#x5206;&#x3002;&#x5176;&#x4E2D;&#xFF0C;&#x9759;&#x6001;&#x4EE3;&#x7801;&#x8868;&#x4E3B;&#x8981;&#x903B;&#x8F91;&#xFF1A;</p>
<ul>
<li>&#x5E94;&#x7528;&#x521D;&#x59CB;&#x5316;&#x65F6;&#xFF0C;&#x672C;&#x5730;&#x52A0;&#x8F7D;&#x9759;&#x6001;&#x4EE3;&#x7801;&#x8868;JSON&#x6570;&#x636E;&#x5B58;&#x5165;&#x524D;&#x7AEF;&#x7F13;&#x5B58;store&#x91CC;&#x9762;</li>
<li>&#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;&#x63D0;&#x4F9B;&#x9759;&#x6001;&#x4EE3;&#x7801;&#x8868;&#x4F9B;&#x6570;&#x80FD;&#x529B;</li>
<li>UI&#x754C;&#x9762;&#x9700;&#x8981;&#x76F4;&#x63A5;&#x8C03;&#x7528;&#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;&#x53D6;&#x6570;&#x5373;&#x53EF;&#xFF0C;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</li>
</ul>
<pre><code class="lang-typescript"><span class="hljs-comment">// step1 &#x5E94;&#x7528;&#x5165;&#x53E3;&#x7EC4;&#x4EF6;App.vue&#x521D;&#x59CB;&#x5316;&#x9636;&#x6BB5;&#xFF08;created&#x51FD;&#x6570;&#xFF09;&#x83B7;&#x53D6;&#x524D;&#x7AEF;&#x5E94;&#x7528;</span>
<span class="hljs-comment">/**
*  &#x89C6;&#x56FE;&#x52A0;&#x8F7D;&#x4EE3;&#x7801;&#x8868;
*/</span>
<span class="hljs-keyword">public</span> async loadAppData(){
    <span class="hljs-keyword">const</span> _store:<span class="hljs-built_in">any</span> = store;
    <span class="hljs-keyword">if</span>(_store.state &amp;&amp; _store.state.codelists &amp;&amp; _store.state.codelists.length &gt;<span class="hljs-number">0</span>){
        <span class="hljs-keyword">this</span>.isRouterAlive = <span class="hljs-literal">true</span>;
        <span class="hljs-keyword">return</span>;
    }<span class="hljs-keyword">else</span>{
        await LoadAppData.getInstance().load(store);
        <span class="hljs-keyword">this</span>.isRouterAlive = <span class="hljs-literal">true</span>;
    }
}
<span class="hljs-comment">/**
* &#x6570;&#x636E;&#x52A0;&#x8F7D;
*
* @returns {Promise&lt;any&gt;}
* @memberof LoadAppData
*/</span>
<span class="hljs-keyword">public</span> async load(store: Store&lt;<span class="hljs-built_in">any</span>&gt;): Promise&lt;<span class="hljs-built_in">any</span>&gt; {
    <span class="hljs-keyword">const</span> url = <span class="hljs-string">`./assets/json/data-dictionary.json`</span>;
    <span class="hljs-keyword">let</span> response: <span class="hljs-built_in">any</span> = await Http.getInstance().get(url)
    <span class="hljs-keyword">if</span> (response &amp;&amp; response.status === <span class="hljs-number">200</span> &amp;&amp; response.data &amp;&amp; <span class="hljs-built_in">Array</span>.isArray(response.data)) {
        <span class="hljs-keyword">const</span> datas: <span class="hljs-built_in">any</span>[] = [...response.data];
        datas.forEach((item: <span class="hljs-built_in">any</span>) =&gt; {
            <span class="hljs-keyword">if</span> (!item.items) {
                item.items = [];
            }
        });
        store.commit(<span class="hljs-string">&apos;addCodeLists&apos;</span>, datas);
    }
    <span class="hljs-keyword">return</span> response;
}

<span class="hljs-comment">// step2 &#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;&#x63D0;&#x4F9B;&#x9759;&#x6001;&#x4EE3;&#x7801;&#x8868;&#x4F9B;&#x6570;&#x80FD;&#x529B;</span>
<span class="hljs-comment">/**
* &#x83B7;&#x53D6;&#x9759;&#x6001;&#x4EE3;&#x7801;&#x8868;
*
* @param {string} tag &#x4EE3;&#x7801;&#x8868;&#x6807;&#x8BC6;
* @returns {Promise&lt;any[]&gt;}
* @memberof CodeListService
*/</span>
<span class="hljs-keyword">public</span> getStaticItems(tag: <span class="hljs-built_in">string</span>):Promise&lt;<span class="hljs-built_in">any</span>[]&gt;{
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> Promise((resolve:<span class="hljs-built_in">any</span>,reject:<span class="hljs-built_in">any</span>) =&gt;{
        <span class="hljs-keyword">const</span> codelist = <span class="hljs-keyword">this</span>.$store.getters.getCodeList(tag);
        <span class="hljs-keyword">if</span> (codelist) {
            <span class="hljs-keyword">let</span> items: <span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">any</span>&gt; = [...JSON.parse(<span class="hljs-built_in">JSON</span>.stringify(codelist.items))];
            resolve(items);
        }
    })
}

<span class="hljs-comment">// step3 UI&#x9700;&#x8981;&#x6CE8;&#x5165;&#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;&#x8C03;&#x7528;&#x80FD;&#x529B;&#x5373;&#x53EF;</span>
</code></pre>
<p>&#x52A8;&#x6001;&#x4EE3;&#x7801;&#x8868;&#x4E3B;&#x8981;&#x5305;&#x542B;4&#x5757;&#x4E3B;&#x8981;&#x903B;&#x8F91;&#xFF1A;</p>
<ul>
<li>&#x52A8;&#x6001;&#x4EE3;&#x7801;&#x8868;&#x9996;&#x5148;&#x8BF7;&#x6C42;&#x63A5;&#x53E3;&#x6570;&#x636E;</li>
<li>&#x63A5;&#x53E3;&#x6570;&#x636E;&#x5230;&#x8FBE;&#x4E4B;&#x540E;&#x8F6C;&#x5316;&#x4E3A;UI&#x6240;&#x9700;&#x6570;&#x636E;&#x7ED3;&#x6784;&#x4F9B;UI&#x5C42;&#x4F7F;&#x7528;</li>
<li>&#x52A8;&#x6001;&#x4EE3;&#x7801;&#x8868;&#x5185;&#x7F6E;&#x903B;&#x8F91;&#x8FD8;&#x5305;&#x542B;&#x7F13;&#x5B58;&#x5904;&#x7406;&#x903B;&#x8F91;</li>
<li>UI&#x9700;&#x8981;&#x6CE8;&#x5165;&#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;&#x8C03;&#x7528;&#x80FD;&#x529B;&#x5373;&#x53EF;&#xFF0C;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</li>
</ul>
<pre><code class="lang-typescript">// step1 &#x52A8;&#x6001;&#x4EE3;&#x7801;&#x8868;&#x9996;&#x5148;&#x8BF7;&#x6C42;&#x63A5;&#x53E3;&#x6570;&#x636E;
/**
* &#x83B7;&#x53D6;&#x6570;&#x636E;&#x9879;
*
* @param {*} context
* @param {*} data
* @param {boolean} [isloading]
* @returns {Promise&lt;any&gt;}
* @memberof ${srfclassname(&apos;${item.getCodeName()}&apos;)}
*/
public getItems(context: any={}, data: any={}, isloading?: boolean): Promise&lt;any&gt; {
    return new Promise((resolve, reject) =&gt; {
        data = this.handleQueryParam(data);
        const promise: Promise&lt;any&gt; = this.${item.getPSAppDataEntity().codeName?lower_case}Service.${item.getPSAppDEDataSet().codeName}(context, data, isloading);
        promise.then((response: any) =&gt; {
            if (response &amp;&amp; response.status === 200) {
                const data =  response.data;
                resolve(this.doItems(data));
            } else {
                resolve([]);
            }
        }).catch((response: any) =&gt; {
            console.error(response);
            reject(response);
        });
    });
}

// step2 &#x63A5;&#x53E3;&#x6570;&#x636E;&#x5230;&#x8FBE;&#x4E4B;&#x540E;&#x8F6C;&#x5316;&#x4E3A;UI&#x6240;&#x9700;&#x6570;&#x636E;&#x7ED3;&#x6784;&#x4F9B;UI&#x5C42;&#x4F7F;&#x7528;
/**
* &#x5904;&#x7406;&#x6570;&#x636E;
*
* @public
* @param {any[]} items
* @returns {any[]}
* @memberof ${srfclassname(&apos;${item.getCodeName()}&apos;)}
*/
public doItems(items: any[]): any[] {
    let _items: any[] = [];
    items.forEach((item: any) =&gt; {
        let itemdata:any = {};
        Object.assign(itemdata,{id:item.&lt;#if item.getValuePSAppDEField()??&gt;${item.getValuePSAppDEField().getCodeName()?lower_case}&lt;#else&gt;${item.getPSAppDataEntity().getKeyPSAppDEField().codeName?lower_case}&lt;/#if&gt;});
        Object.assign(itemdata,{value:item.&lt;#if item.getValuePSAppDEField()??&gt;${item.getValuePSAppDEField().getCodeName()?lower_case}&lt;#else&gt;${item.getPSAppDataEntity().getKeyPSAppDEField().codeName?lower_case}&lt;/#if&gt;});
        Object.assign(itemdata,{text:item.&lt;#if item.getTextPSAppDEField()??&gt;${item.getTextPSAppDEField().getCodeName()?lower_case}&lt;#else&gt;${item.getPSAppDataEntity().getMajorPSAppDEField().codeName?lower_case}&lt;/#if&gt;});
        Object.assign(itemdata,{label:item.&lt;#if item.getTextPSAppDEField()??&gt;${item.getTextPSAppDEField().getCodeName()?lower_case}&lt;#else&gt;${item.getPSAppDataEntity().getMajorPSAppDEField().codeName?lower_case}&lt;/#if&gt;});
        &lt;#if item.getPValuePSAppDEField()??&gt;Object.assign(itemdata,{pvalue:item.${item.getPValuePSAppDEField().getCodeName()?lower_case}});&lt;/#if&gt;
        _items.push(itemdata);
    });
    return _items;
}

// step3 &#x52A8;&#x6001;&#x4EE3;&#x7801;&#x8868;&#x5185;&#x7F6E;&#x903B;&#x8F91;&#x8FD8;&#x5305;&#x542B;&#x7F13;&#x5B58;&#x5904;&#x7406;&#x903B;&#x8F91;,&#x4E3B;&#x8981;&#x653E;&#x5728;&#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;&#x57FA;&#x7C7B;&#x4E2D;
/**
* &#x83B7;&#x53D6;&#x52A8;&#x6001;&#x4EE3;&#x7801;&#x8868;
*
* @param {string} tag &#x4EE3;&#x7801;&#x8868;&#x6807;&#x8BC6;
* @param {string} context
* @returns {Promise&lt;any[]&gt;}
* @memberof CodeListService
*/
public getItems(tag: string,context:any = {}, data?: any, isloading?: boolean): Promise&lt;any[]&gt; {
    ......
}
// step4 UI&#x9700;&#x8981;&#x6CE8;&#x5165;&#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;&#x8C03;&#x7528;&#x80FD;&#x529B;&#x5373;&#x53EF;,&#x5982;&#xFF1A;
/**
* &#x52A0;&#x8F7D;&#x6570;&#x636E;
*
* @memberof DropDownList
*/
public loadData(){
    ......
    this.codeListService.getItems(this.tag,_context,_param).then((res:any) =&gt; {
        let items: Array&lt;any&gt; = [...res];
        this.formatCodeList(items);
    }).catch((error:any) =&gt; {
        console.log(`----${this.tag}----&#x4EE3;&#x7801;&#x8868;&#x4E0D;&#x5B58;&#x5728;`);
    });
}
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="AUTHSERVICE.html" class="navigation navigation-prev " aria-label="Previous page: 权限服务">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="COUNTERSERVICE.html" class="navigation navigation-next " aria-label="Next page: 计数器服务">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"代码表服务","level":"2.6.4","depth":2,"next":{"title":"计数器服务","level":"2.6.5","depth":2,"path":"UISERVICE/COUNTERSERVICE.md","ref":"./UISERVICE/COUNTERSERVICE.md","articles":[]},"previous":{"title":"权限服务","level":"2.6.3","depth":2,"path":"UISERVICE/AUTHSERVICE.md","ref":"./UISERVICE/AUTHSERVICE.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"UISERVICE/CODELISTSERVICE.md","mtime":"2020-09-18T07:45:50.168Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-11-02T06:38:45.289Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

